# -*- coding: utf-8 -*-..,
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    Copyright (C) 2014 Crea8s (http://www.crea8s.com) All Rights Reserved.
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#  
##############################################################################

from openerp.osv import fields, osv
# from openerp.tools.translate import _
# from openerp import netsvc

# 
# class crea8s_vector_quo(osv.osv):
#     _inherit = "sale.order"
#     _description = 'crea8s_vector_quo...'
#     _columns = {
#         'crea8s_vec_valid_till': fields.date('Valid Till'),
#         'crea8s_vec_shipment_terms': fields.char('Shipment Terms', size=128),
#         'crea8s_vec_lead_time': fields.char('Lead Time', size=128),
#         'crea8s_vec_project_id': fields.many2one('crea8s.vec.project', 'Project ID'),
#         'crea8s_vec_project_ref': fields.related('crea8s_vec_project_id', 'ref', type='char', relation='crea8s.vec.project', string='Project Ref', store=True),
#         'crea8s_vec_project_name': fields.related('crea8s_vec_project_id', 'name', type='char', relation='crea8s.vec.project', string='Project Name', store=False),
# #         
#         'crea8s_vec_ob_ref': fields.char('OB Ref', size=128),
#         'crea8s_vec_type_of_proposal': fields.many2one('crea8s.vec.type.of.proposal', 'Type of Proposal'),
#         'crea8s_vec_type_of_proposal_package': fields.many2one('crea8s.vec.type.of.proposal.package', 'Type of Proposal Package'),
#         'crea8s_vec_project_site': fields.many2one('res.country', 'Project Site'),
#         'crea8s_vec_name_of_end_user': fields.char('Name of End User', size=30),
#         'crea8s_vec_proposal_sales_rep': fields.many2one('hr.employee', 'Proposal/Sales Rep'),
#         
# # 'state': fields.selection([('draft','Draft'),
# # ('confirmed','Confirmed')],'State',required=True,readonly=True)
#     }
# #     strFormatTime = '%Y-%m-%d %H:%M:%S %Z'
#     def do_wkf_estimate_sent(self, cr, uid, ids, context={}):
#         print "do_wkf_estimate_sent....."
#         return True
#  
# crea8s_vector_quo()


# class crea8s_vector_so_line(osv.osv):
#     _inherit = "sale.order.line"
#     _description = 'crea8s_vector_so_line...'
#     _columns = {
#         'crea8s_vec_product_title': fields.char('Product Title', size=128),
#         
# # 'state': fields.selection([('draft','Draft'),
# # ('confirmed','Confirmed')],'State',required=True,readonly=True)
#     }
#     
# crea8s_vector_so_line()


class crea8s_vec_type_of_proposal(osv.osv):
    _name = "crea8s.vec.type.of.proposal"
    _description = 'crea8s_vec_type_of_proposal...'
    _columns = {
        'name': fields.char('Type of Proposal', size=30), 
    }
    
crea8s_vec_type_of_proposal()


class crea8s_vec_type_of_proposal_package(osv.osv):
    _name = "crea8s.vec.type.of.proposal.package"
    _description = 'crea8s_vec_type_of_proposal_package...'
    _columns = {
        'name': fields.char('Type of Proposal Package', size=30), 
    }
    
crea8s_vec_type_of_proposal_package()

class crea8s_vec_project(osv.osv):
    _name = "crea8s.vec.project"
    _description = 'crea8s_vec_project...'
    _columns = {
        'ref': fields.char('Project Ref', size=30), 
        'name': fields.char('Project Name', size=100), 
    }
    
crea8s_vec_project()

